<?php get_header(); ?>
<?php
if (have_posts()) 
{
 	while (have_posts()) 
	{
		the_post();
		global $General;
		$blogcatids = $General->get_blog_catid();
		if(in_category($blogcatids))
		{
			include (TEMPLATEPATH . "/library/includes/blog_detail.php");
		}else
		{
			include (TEMPLATEPATH . "/library/includes/ads_detail.php");
		}
	}
}
else
{
	_e(NO_POSTS_MATCH_MSG);
}
?>

<?php get_footer(); ?>